<?php

namespace app\admin\controller;

use app\common\controller\Backend;

/**
 * 常见问题管理
 */
class Faq extends Backend
{
    /**
     * @var \app\common\model\Faq
     */
    protected $model = null;

    public function _initialize()
    {
        parent::_initialize();
        $this->model = model('Faq');
    }

    public function detail($ids = null)
    {
        $row = $this->model->get($ids);
        if (!$row) {
            $this->error(__('No Results were found'));
        }
        $this->view->assign("row", $row);
        return $this->view->fetch();
    }
} 